package com.sw.example;
import com.sw.example.entity.ProcessRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;


@Component
public class LoadResourceApplicationRunner implements ApplicationRunner{
    /**
     * Callback used to run the bean.
     *
     * @param args incoming application arguments
     * @throws Exception on error
     */

    @Autowired
    private ProcessRecord processRecord;

    @Override
    public void run(ApplicationArguments args) throws Exception {

        processRecord.setTitle("你是煞笔");
//        processRecord.setDesc(TypeConvertUtils.toInt("111"));
        System.out.println(processRecord.toString());



    }
}
